﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QLTV_V2
{
    public partial class FrmInDKCB : Form
    {
        public FrmInDKCB()
        {
            InitializeComponent();
        }
        public DataTable dtb;
        public int dk;
        private void FrmInDKCB_Load(object sender, EventArgs e)
        {
            if (dk == 1)//In nhãn gáy
            {
                CRT_InNhanGay crt = new CRT_InNhanGay();
                crt.SetDataSource(dtb);
                crystalReportViewer1.ReportSource = crt;
            }
            if (dk == 2)//In mã dk cá biệt
            {
                CRT_InDKCB crt = new CRT_InDKCB();
                crt.SetDataSource(dtb);
                crystalReportViewer1.ReportSource = crt;
            }
            if (dk == 3)//In mã vạch
            {
                CRT_InMaVach crt = new CRT_InMaVach();
                crt.SetDataSource(dtb);
                crystalReportViewer1.ReportSource = crt;
            }
            if (dk == 4)//In phích mô tả
            {
                CRT_PhichMoTa crt = new CRT_PhichMoTa();
                crt.SetDataSource(dtb);
                crystalReportViewer1.ReportSource = crt;
            }
        }
    }
}
